﻿namespace WordCloudClient.Services
{
    public interface ISystemService
    {
        #region FilterWords
        public bool IsExistFilterWords(string word);
        public List<FilterWordsEntity> GetFilterWordsEntities(QueryModel queryModel);
        public List<FilterWordsEntity> GetFilterWordsEntities(QueryModel queryModel, ref int totalPages, ref int totalCount);
        public bool UpdateFilterWord(FilterWordsEntity filterWordsEntity, ref string errorMsg);
        public bool AddFilterWord(FilterWordsEntity filterWordsEntity, ref string errorMsg);
        public bool DeleteFilterWord(FilterWordsEntity filterWordsEntity);
        #endregion


        #region SystemSetting
        public List<DictionaryEntity> GetDictionaryEntities(QueryModel queryModel);
        public List<DictionaryEntity> GetDictionaryEntities(QueryModel queryModel, ref int totalPages, ref int totalCount);
        public bool UpdateDictionary(DictionaryEntity dictionaryEntity, ref string errorMsg);
        public bool AddDictionary(DictionaryEntity dictionaryEntity, ref string errorMsg);
        public bool DeleteDictionary(DictionaryEntity dictionaryEntity);
        public DictionaryEntity GetDictionaryValueByCode(string code);
        #endregion
    }
}
